<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="./public/admin/bootstrap/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="./public/admin/bootstrap/css/bootstrap-responsive.min.css"/>
		<script src="bootstrap/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./public/admin/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./public/admin/js/area.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="./public/admin/css/shopping.css"/>
		<link rel="stylesheet" type="text/css" href="./public/admin/css/pay_header.css"/>
		<link rel="stylesheet" type="text/css" href="./public/admin/css/footer.css"/>
		<title></title>
	</head>
	<body>
		{{include file="VIEW_PATH/Common/header_2.php"}}
		
		<article>
			<script type="text/javascript">
			$(function(){

				$('.newads').click(function(){
					var re=$(this).is(':checked');
//					alert(re);					
					if(re){
						$('.address-manage').css({display:'block'});
					}else{
						$('.address-manage').css({display:'none'});
					}
				})
							
			})	
			</script>
			
			<script type="text/javascript">
				$(function(){
					//初始化方法
					area.init('area');
					//修改的时候默认被选中效果
					area.selected('黑龙江','哈尔滨','道里区');
				})
			</script>
			
			<script type="text/javascript">
				$(function(){
					$('#ads').click(function(){
						 if ($(this).attr("checked")) {
                           $(this).val({{$addressData['uaid']}});
                      };
					})
				})
			</script>			
			<div class="hedui">
				<form action="{{U('Gorder/index')}}" method="post">	
				<div class="hd_t"><span>&nbsp;&nbsp;&nbsp;请填写并核对以下信息</span></div>
				<div class="address">
					<script type="text/javascript">
						$(function(){
							$('#ads').click(function(){
								 if ($(this).attr("checked")) {
		                           $(this).val({{$addressData['uaid']}});
		                      };
							})
						})
					</script>					
					<p>收货地址：</p>
					{{if value="!empty($addressData)"}}
					<p style="font-size: 12px;">
						<input type="radio" name="ads" id="ads"  >
						<span id="" style="font-weight: bold; color: #e8044f;">{{$addressData['consignee']}}</span> 
						<span style="font-size: 12px;">&nbsp;&nbsp;&nbsp;{{$addressData['address']}}&nbsp;&nbsp;&nbsp;{{$addressData['phone']}} &nbsp;&nbsp;&nbsp;&nbsp; 
						<a href="{{U('Home/Usercenter/address',array('uid'=>$_SESSION['id']))}}" onclick="javascript:if(confirm('注：如果修改默认地址，需要重新提交订单，确认要修改吗？')){return true;}return false;" style="text-decoration: underline;">[修改]</a></span>    
					</p>
					{{else}}
						<p style="font-size: 12px;">						 
						<a href="{{U('Home/Usercenter/address',array('uid'=>$_SESSION['id']))}}" onclick="javascript:if(confirm('注：如果修改默认地址，需要重新提交订单，确认要修改吗？')){return true;}return false;" style="text-decoration: underline;">[未检测到默认地址,去我的地址管理中选取]</a></span>    
					</p>
					{{endif}}
					
					<p style="font-size: 12px;"><input type="radio" name="ads"  class="newads">使用新地址</p>	
					
					<div class="address-manage">
						<ul>
							<li class="address-manage1">
								<span class="name">收货人姓名：</span>
								<input type="" name="consignee" id="" value="" />
								<span>请填写您的真实姓名，最多5个汉字</span>
							</li>
							<li class="address-manage2">
								<span>省市：</span>
								<select name="address[]" id="area1" class="text-input">
									<!--<option value="">选择省份</option>-->
								</select>
								<select name="address[]" id="area2" value="">
									<!--<option value="">选择城市</option>-->
								</select>
								<select name="address[]" id="area3" value="">
									<!--<option value="">选择区县</option>-->
								</select>
								<input type="text" class='ads' name="address[]" id="address[]" value="" />
								<span>标'*'的为支持加急送的地区，请输入收货的详细地址</span>
							</li>
							<li class="address-manage3">
								<span>手机号码：</span>
								<input type="" name="phone" id="" value="" />
								<span>填写正确手机号便于接收发货和收货通知</span>
							</li>
							<li class="address-manage6">
								<span>邮编：</span>
								<input type="" name="postcode" id="" value="" />
								<span> 请填写准确的邮编，以确保商品尽快送达</span>
							</li>
						</ul>					
						<!--<input type="submit" class="submit" value="保存并送到这个地址"/>-->						
					</div>
					
				</div>
			</div>
		
			<!--地址end-->
			<!--商品信息start-->
			<div class="xinxi_1">
				<ul style="font-weight: bold;">
					<li style="width:40%;">商品信息</li>
					<li style="width:13%;">单价（元）</li>
					<li style="width:10%;">数量</li>
					<li style="width:10%;">小计（元）</li>
					<li style="width:27%;">商品金额（元）</li>
				</ul>
			</div>
			<div class="xinxi_2">
				{{foreach from="$data['goods']" key="$k" value="$v"}}
				<ul>
					<li style="width:40%;">
						<img src="{{$v['options']['pic']}}"/ style="width: 40px">
						<p>
							<a href="">{{$v['name']}}</a>
							<span id="">颜色:{{$v['color']}} 尺码:{{$v['size']}}</span>
						</p>
					</li>
					<li style="width:13%;">￥{{$v['price']}}.00</li>
					<li style="width:10%;">{{$v['num']}}</li>
					<li style="width:10%; font-weight: bold;" >￥{{$v['total']}}.00</li>
					<li style="width:26%; font-size: 18px;font-weight: bold;">￥{{$v['total']}}.00</li>
				</ul>
				
				<!--<input type="hidden" name="num[]" id="" value="{{$v['num']}}" />
				<input type="hidden" name="total[]" id="" value="{{$v['total']}}" />
				<input type="hidden" name="gid[]" id="" value="{{$v['id']}}" />
				<input type="hidden" name="remark[]" id="" value="备注" />-->
				{{endforeach}}
				备注：<input type="text"  name="odremark"  value="" />
			</div>
			
			<div class="money">
				<p>你需要支付金额：<span>{{$data['total_all']}}.00</span>元</p>

				
				<p><input class="submit_2" type="submit" id="" value="去付款" name="" /></p>
			</div>
			</form>
		</article>
		{{include file="VIEW_PATH/Common/footer.php"}}
	</body>
</html>
